from transformers import BertTokenizer, BertModel
model_name = 'bert-large-uncased' # find model name in library.
foldername = 'bert-large-uncased'
model = BertModel.from_pretrained(model_name)
tokenizer = BertTokenizer.from_pretrained(model_name)
tokenizer.save_pretrained(f"./{foldername}/")
model.save_pretrained(f"./{foldername}/")